@extends('layouts.admin')
@section('title','标签添加')

@section('content')

  <!-- Main content -->
  <section class="content">
    <div class="col-md-6" style="width: 100%">
      <!-- Horizontal Form -->
      <div class="box box-info">
        <div class="box-header with-border">

        </div>
        <!-- /.box-header -->
        <!-- form start -->
        <form class="form-horizontal style-form" method="post" action="{{route('admin.tag.store')}}">
          {{ csrf_field() }}
          <div class="box-body">
            <div class="form-group">
              <label for="inputEmail3" class="col-sm-2 control-label">名称</label>

              <div class="col-sm-10">
                <input type="text"  class="form-control" id="name" name="name"  placeholder="" value="{{old('name')}}" >
                <lable class="error error_name"   style="display: inline-block;">{{$errors->first('name')}}</lable>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">选择类型</label>
              <div class="col-sm-10">
                <select  multiple="" class="form-control"  name="type">
                    <option value="article">文章类标签</option>
                </select>
                <lable class="error error_type"   style="display: inline-block;">{{$errors->first('type')}}</lable>
              </div>
            </div>
            <div class="form-group">
              <label for="inputEmail3" class="col-sm-2 control-label">是否栏目</label>

              <div class="col-sm-10">
                <input type="radio" name="is_category" id="is_category" value="0" checked="checked">否
                <input type="radio" name="is_category" id="is_category" value="1" >是
                <lable class="error error_is_category"   style="display: inline-block;">{{$errors->first('is_category')}}</lable>
              </div>
            </div>





            </div>

          </div>
          <!-- /.box-body -->
          <div class="box-footer">
            <button type="button" class="btn btn-default" onClick="javascript:history.back()">返回</button>
            <button type="submit" class="btn btn-info pull-right ">提交</button>
          </div>
          <!-- /.box-footer -->
        </form>
      </div>
      <!-- /.box -->
      <!-- general form elements disabled -->

      <!-- /.box -->

  </section>
  <!-- /.content -->



@endsection

@section('script')
  <script src="{{asset('assets/js/jquery.validate.js')}}"></script>
  <script src="{{asset('assets/js/quanxian.js')}}"></script>

@endsection